import 'package:flutter/material.dart';
import 'package:flutter_imageannotation/map-with-markers.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(393, 852),
      minTextAdapt: true,
      splitScreenMode: true,
      builder:(context , child){
       return  MaterialApp(
          title: 'Flutter Demo111',
          theme: ThemeData(
           brightness: Brightness.dark, // 设置为暗色主题
           primarySwatch: Colors.blue, // 设置主色调（在暗色主题下会自动调整）,
          ),
          home:child  //const ImageAnnotationScreen(title: 'Flutter Demo Home Page222222'),
        );
      },
      child: const MyHomePage(title: '地图2',),
     );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: MapWithMarkers()
    );
  }
}
